package com.hzqy.persistence.dao.plan;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.UserCompleteCourseVo;
import org.springframework.stereotype.Repository;
import java.util.*;

@Repository
public class UserCompleteCourseDao extends PersistenceDao<UserCompleteCourseVo,Integer> {

    public int insertUserCompleteCourse(UserCompleteCourseVo userCompleteCourseVo){
        return getSqlSession().insert(getNamespace()+"insertUserCompleteCourse",userCompleteCourseVo);
    }

    public UserCompleteCourseVo selectUserCompleteCourseInfo(Map<String,Object> map){
        return getSqlSession().selectOne(getNamespace()+"selectUserCompleteCourseInfo",map);
    }

    public int deleteUserCompleteCourse(Map<String,Object> map){
        return getSqlSession().delete(getNamespace()+"deleteUserCompleteCourse",map);
    }
}
